import { Consumer } from './App';

export const Child = () => (
  <div style={{ border: '1px solid green', padding: 12 }}>
    <h2>Child</h2>
    <h3>
      <Consumer>{(value) => value}</Consumer>
    </h3>
  </div>
);

export default Child;
